/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.yournamehere.client.vistas;

import com.smartgwt.client.types.Alignment;  
import com.smartgwt.client.types.Overflow;  
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.Label;  
import com.smartgwt.client.widgets.layout.HLayout;  
import com.smartgwt.client.widgets.layout.VLayout;  
/**
 *
 * @author alberto
 */
public class Principal{

    public Principal() {
        HLayout mainLayout = new HLayout();  
        mainLayout.setWidth100();  
        mainLayout.setHeight100();  
  
        Label navigationLabel = new Label();  
        navigationLabel.setContents("Navigation");  
        navigationLabel.setAlign(Alignment.CENTER);  
        navigationLabel.setOverflow(Overflow.HIDDEN);  
        navigationLabel.setWidth("30%");  
        navigationLabel.setShowResizeBar(true);  
  
        mainLayout.addMember(navigationLabel);  
  
        VLayout vLayout = new VLayout();  
        IButton botonUsuarios = new IButton();
        botonUsuarios.setTitle("Usuarios");
        
        IButton botonClientes = new IButton();
        botonClientes.setTitle("Clientes");
        
  
        vLayout.addMember(botonUsuarios);  
        vLayout.addMember(botonClientes);
        
        mainLayout.addMember(vLayout);
        mainLayout.draw();
    }
    
}
